<%= link_to image_tag("first.gif"), { :page => paginate.first } if paginate.current.previous%>
<%= image_tag("no_first.gif") if !paginate.current.previous%>
<%= link_to image_tag("pre.gif"), { :page => paginate.current.previous } if paginate.current.previous%>
<%= image_tag("no_pre.gif")  if !paginate.current.previous%>
<%= link_to image_tag("next.gif"), { :page => paginate.current.next } if paginate.current.next %> 
<%= image_tag("no_next.gif") if !paginate.current.next %> 
<%= link_to image_tag("last.gif"), { :page => paginate.last } if paginate.current.next%>
<%= image_tag("no_last.gif") if !paginate.current.next%>